package com.zsrt.springboot;

import java.util.Scanner;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;


@SpringBootApplication
public class ServiceApp{
    public static void main( String[] args ){
    	Scanner scanner = new Scanner(System.in);
    	//負載均衡器 8080 8081
    	System.out.println("請輸入端口號:");
    	String port = scanner.nextLine();
    	scanner.close();
    	new SpringApplicationBuilder(ServiceApp.class).properties("server.port="+port).run(args);
        System.out.println( "Hello World!" );
    }
}
